package com.gitee.lht.common.IAssert;

/**
 * @author Eric
 * @version 1.0
 * @date 2019-12-13
 */
public abstract class AbstractBusinessException extends Exception {

    private int code;

    private String explain;


    public AbstractBusinessException(int code, String explain) {
        this.code = code;
        this.explain = explain;
    }

    public AbstractBusinessException(String message, int code, String explain) {
        super(message);
        this.code = code;
        this.explain = explain;
    }

    public AbstractBusinessException(String message, Throwable cause, int code, String explain) {
        super(message, cause);
        this.code = code;
        this.explain = explain;
    }

    public AbstractBusinessException(Throwable cause, int code, String explain) {
        super(cause);
        this.code = code;
        this.explain = explain;
    }

    public AbstractBusinessException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, int code, String explain) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.code = code;
        this.explain = explain;
    }
}
